<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>帮帮网-个人中心</title>
<link href="css/layout.css" type="text/css" rel="stylesheet" />
<script src="JS/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="JS/jquery.livequery.js" type="text/javascript"></script>
<script src="JS/page.js" type="text/javascript"></script>
<script src="JS/login.js" type="text/javascript"></script>
<script src="JS/showHelps.js" type="text/javascript"></script>
<script src="JS/follow.js" type="text/javascript"></script>
<script type="text/javascript" src="JS/httpRequest.js"></script>
<script type="text/javascript" src="JS/cookie.js"></script>
<script type="text/javascript" src="JS/GetUserInfo.js"></script>
<script type="text/javascript"> 
//等待dom元素加载完毕.  
$(document).ready(function(){ 
	//GetOtherInfo();
	//
	$(".user_nav ul li").click(function(){
		if($(this).hasClass("hover"))
		{
		}
		else
		{
			var sel_on = $(".user_nav .hover");
			sel_on.removeClass("hover");
			$(this).addClass("hover");
		}
	});

});  
var otherid;
var othername;
var username;
var userID;
function GetOtherInfo()
{
	var contentURL = document.location.search;
	//body onload调用的函数 所以计算几个全局变量
	otherid = contentURL.slice(1);	//otherid
	othername=getNameByID(otherid);
	username=getCookie('username');
	userID = getCookie('userID');
	if (userID == otherid )
	{
		window.location.href="user.html";
		return;
	}
	GetUserInfoOther(otherid);
}
function getOtherFocusCateList()
{
	getFocusCateList(otherid);
}
var helps;

function checkISYourFriend()
{
	//alert("fuck");
	var url="friend/friend.php?action=checkISYourFriend";
	var para="oid="+otherid;
	para+="&uid="+userID;
	var resp=SendPostRequest(url,para);
	//alert(resp);
	if(resp == "true")
	{//已经关注
		$("#followButton").hide();
		$("#unfollowButton").show();
	}
	else if (resp == "false")
	{
		$("#followButton").show();
		$("#unfollowButton").hide();
	}
}

function followO(oid,oname)
{
	follow(oid,oname);
	checkISYourFriend();
}
function unfollowO(oid,oname)
{
	unfollow(oid,oname);
	checkISYourFriend();
}
</script>
</head>
<body onload="GetOtherInfo();checkISYourFriend();getOtherFocusCateList();showHelpListOther('iReqList',0)">
<div id="container">
  <div class="head">
    <div id="logo"></div>
    <div class="menu">
      <div class="toolbar">Welcome！&nbsp&nbsp<a href="login.html">&nbsp登录&nbsp</a> <a href="register.html">&nbsp注册&nbsp</a></div>
      <ul>
        <li><a href="index.html">帮帮大厅</a></li>
        <li><a href="user.html">我的主页</a></li>
        <li><a href="bulletin.html">公告</a></li>
      </ul>
      <div class="count"><span>未解决：<a href="#">11110769个</a> 已解决：<a href="#">736998个</a></span><em></em></div>
    </div>
    <!--menu end-->
  </div>
  <!--head end-->
  <div class="space_h"></div>
  <div class="maintop"></div>
  <div class="main">
    <div class="left">
	  <!--
	  <div id="IsFriend" class="user_at"> 
		<span class="at2"></span>
	  </div>
	  -->
	  <div class="user_at"> 
		<span id="followButton" onclick="followO(otherid,othername)" ><a href="#">关注TA</a></span> 
		<span id="unfollowButton" class="at2" onclick="unfollowO(otherid,othername)" ><a href="#">取消关注</a></span>
	  </div>
      <div class="user_at"> 
	  <!--
		<span><a href="friend.html?0">ta关注的人</a></span> 
		<span class="at2"><a href="friend.html?1">关注ta的人 此功能未实现</a></span>
	  -->
	  </div>
      <dl class="nav">
        <dt>ta关注的版面</dt>
        <dd>
          <ul>
            <div id="iFocusCateList">
              <li><a href="#">生活</a><em></em></li>
              <li><a href="#">软件</a><em></em></li>
              <li><a href="#">电脑</a><em></em></li>
              <li><a href="#">足球</a><em></em></li>
            </div>
          </ul>
        </dd>
      </dl>
    </div>
    <div id="user_info" class="user_infor">
      <dl>
        <dt><img src="images/head.gif" width="97" height="97" /></dt>
        <dd> <b>设计人员</b> 性别：男<br />
          活跃度：<font>100</font><br />
          好评度：<font>100% </font><br />
          差评度：<font>0%</font><br />
          手机号码：15000000000<br />
          感情状态：未婚<br />
          出生年月日：1900年1月1日<br />
          历史记录 </dd>
      </dl>
    </div>
    <div class="right user_list">
      <div class="user_nav">
        <ul>
		  <li class="hover" onclick="showHelpListOther('iReqList',0)"><a href="#">TA发布的</a></li>
          <li onclick="showHelpListOther('iFocusList',0)"><a href="#">TA关注的</a></li>
          <li onclick="showHelpListOther('friendReqList',0)"><a href="#">TA的朋友有求</a></li>
          <li onclick="showHelpListOther('iApplyList',0)"><a href="#">TA申请的</a></li>
          <li onclick="showHelpListOther('iChooseList',0)"><a href="#">TA承接的</a></li>
        </ul>
      </div>
	  <div id="HelpT">
	    <div class="record">共有<span id="recordCount"></span> 条记录</div>
	    <div id="helps" class="content">
	      <ul>
	        <li>
	          <div class="r_l_head"><span>发布人<br />
	            <img src="images/pic2.gif" width="50" height="50" /><br />
	            <b>Happy</b><br />
	            <font>评分：10</font> </span></div><div class="r_l_head r_l_headc"><span>承接者<br />
                <img src="images/pic3.gif" width="50" height="50" /><br />
                <b>承接者</b><br />
                <font>评分：10</font> </span></div>
              <div class="r_l_c"><b>￥200</b><strong>&nbsp;<a href="#">写一封感谢信给所有购买我们产品的客户</a></strong><font color="#dddddd">（242）</font><br />
                发布人:<font color="#8ca6d7">凹凸曼</font> 时间:2011-05-18 16:28:38<br />
                任务状态: <img src="images/icon-ing.gif" width="14" height="14" /> 进行中<br />
                我们是在淘宝在做时尚女装的品牌，为了进一步增加与买家的互动以及体现出我们的真诚服务品质，这里特别来猪猪网请求各位专业写手从...</div>
            </li>
          </ul>
          </div>
	    <div id="pageDiv">
	      <div id="pageListDiv"></div>
		  <div id="pageNumDiv" ></div>
	      </div>
      </div>
	  <!--
      <div class="page"><span><a href="#">首页</a></span><span><a href="#">上一页</a></span><span><a href="#">1</a></span><span><a href="#">2</a></span><span><a href="#">3</a></span><span><a href="#">4</a></span><span><a href="#">5</a></span><span><a href="#">6</a></span><span><a href="#">7</a></span><span><a href="#">下一页</a></span><span><a href="#">末页</a></span></div>
	  -->
    </div>
  </div>
  <div class="mainbot"></div>
  <!--main end-->
  <div class="space_h"></div>
  <div class="foot">&copy;2007 - 2011 帮帮网  文网文[2011]0000-000  沪ICP备080808080号-2</div>
</div>
<!--container end-->
<script type="text/javascript" src="http://js.tongji.linezing.com/2587587/tongji.js"></script><noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/2587587/tongji.gif"/></a></noscript>
</body>
</html>
